In this case, the method checks that the given string points to a writable directory before making the assignment. 在本例中,方法在进行分配前检查给定字符串指向可写入的目录。
By overloading the assignment operator and exploiting the deterministic finalization provided by C++ scoping, C++ programs can use the string class as if it were garbage collected. 通过重载赋值操作符并利用C++作用域提供的确定性结束,C++程序可以将string类当成是被收集的垃圾那样使用。
There's a function in purple, there's a string in green, and in black I have the assignment statements. 还有个粉色的方法,绿色的字符串,赋值声明是黑色的。